<script setup lang="ts"></script>

<template>
  <div id="menu">
    <div class="logo">
      <p style="font-size: 20px">&#128213;&nbsp;书香之家</p>
    </div>
    <ul>
      <li><NuxtLink to="/">首页</NuxtLink></li>
      <li>
        <a href="#">产品</a>
        <ul>
          <li>
            <a href="#">
              <NuxtLink to="/resume">简历库</NuxtLink>
            </a>
          </li>
          <li>
            <a href="#">
              <NuxtLink to="/project">项目管理</NuxtLink>
            </a>
          </li>
          <li>
            <a href="#">
              <NuxtLink to="/document">文档库</NuxtLink>
            </a>
          </li>
          <li>
            <a href="#">
              <NuxtLink to="/crm">CRM</NuxtLink>
            </a>
          </li>
        </ul>
      </li>
      <li><a href="#">价格</a></li>
      <li><a href="#">客户案例</a></li>
      <li><a href="#">关于我们</a></li>
    </ul>
  </div>
</template>

<style scoped lang="scss">
* {
  margin: 0;
  padding: 0;
}

#menu {
  position: relative;
  // background-color:#dcc9c1;
  width: 100%;
  height: 60px;
  margin-left: 83px;
}

.logo {
  color: #0c0c01;
  display: inline-block;
  line-height: 58px;
  position: absolute;
  padding: 20 40px;
  font-family: '仿宋';
  font-weight: bold;
}

ul {
  list-style: none;
  display: inline-block;
  padding-left: 140px;
}

ul li {
  line-height: 60px;
  text-align: center;
  position: relative;
  float: left;
}

a {
  text-decoration: none;
  color: #353535;
  font-weight: 400;
  display: block;
  padding: 0 30px;
  white-space: nowrap;
  font-family: PingFangSC-Regular, PingFang SC;

  font-size: 16px;
}

a:hover {
  // color: #FFF;
  // background-color: red;
  border-bottom: 1px solid #0071e3;
}

ul li ul li {
  float: none;
  // margin-top: 2px;
  width: 163px;
  height: 30px;
  padding-bottom: 25px;
  background-color: #fff;
}

ul li ul li a:hover {
  color: black;
  background-color: #006ddc;
  border-bottom: 1px solid #fff;
}

ul li ul {
  position: absolute;
  left: -40px;
  top: 50px;
  display: none;
  padding-left: 0px;
  width: 163px;
  height: 160px;
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.1);
}

ul li:hover ul {
  display: block;
}
</style>
